<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <title>阿里通义千问</title>
    <style type="text/css">
    </style>
</head>
<body>
</body>
</html>


<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
    (function(){
        tyqw();
    })();
    function tyqw(){
        $.ajax({
            type: 'post',
            url: 'https://dashscope.aliyuncs.com/api/v1/services/aigc/text-generation/generation',
            headers: {
                'Authorization': 'Bearer aec6489d-c3de-966e-a026-73e4192eb08b',
                'Content-Type': 'application/json',
                'X-DashScope-SSE': 'enable'
            },
            data: {
                'model': 'qwen-max',
                'input': 'HTML登录界面'
            },
            success: function (res) {
                console.log(res);
            },
            error: function() {
                console.log('错误啦');
            }
        });
    }
</script>